package me.sealer.ssm.controller.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * 功能描述： $ NewPermissionRequest
 *
 * @author sealer
 * @email 1178884049@qq.com
 * @date 2020年01月08日 17时42分57秒
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "权限新增请求报文体")
public class NewPermissionRequest {
    @NotBlank(message = "权限名不能为空")
    @ApiModelProperty(value = "权限名", required = true)
    private String name;

    @NotBlank(message = "权限不能为空")
    @ApiModelProperty(value = "权限", required = true)
    private String permission;

    @NotBlank(message = "权限描述不能为空")
    @ApiModelProperty(value = "权限描述", required = true)
    private String description;
}
